import { HashRouter } from 'react-router-dom';
import { Router } from './routers';
import 'antd/dist/antd.min.css';
import './App.css';
import { connect } from 'react-redux'
import Loading from './components/Loading';

function App(props) {
  return (
    <div>
      <HashRouter>
        <Router />
      </HashRouter>
      <Loading flag={props.flag}></Loading>
    </div>
  );
}
//使用connect()()创建并暴露一个Count的容器组件
export default connect(
  state => ({
    flag: state.flag
  })
)(App)